/**
 * @author Jon Adams
 */
package org.osflash.signals.natives.sets;

import org.osflash.signals.natives.NativeSignal;
import flash.events.AsyncErrorEvent;
import flash.events.IOErrorEvent;
import flash.events.NetStatusEvent;
import flash.net.NetStream;

class NetStreamSignalSet extends EventDispatcherSignalSet {
	public var asyncError(getAsyncError, never) : NativeSignal;
	public var ioError(getIoError, never) : NativeSignal;
	public var netStatus(getNetStatus, never) : NativeSignal;

	public function new(target : NetStream) {
		super(target);
	}

	public function getAsyncError() : NativeSignal {
		return getNativeSignal(AsyncErrorEvent.ASYNC_ERROR, AsyncErrorEvent);
	}

	public function getIoError() : NativeSignal {
		return getNativeSignal(IOErrorEvent.IO_ERROR, IOErrorEvent);
	}

	public function getNetStatus() : NativeSignal {
		return getNativeSignal(NetStatusEvent.NET_STATUS, NetStatusEvent);
	}

}

